﻿using System;

namespace 状态模式
{
   public  class ConcreteStateA: AbstractState
    {
       public override void Handle(Context context)
       {
            Console.WriteLine($"当前状态：{GetType()}");
            //改变状态
            context.State = new ContextStateB();
        }
    }
}
